<?php
html::printPath(array(
	    'seminar.form-title' => 'admin/seminar/all',
	    $seminar['name'] => '/admin/seminar/display?id=' . $seminar['id'],
		'receptionist.list-title' => '',
	),
	'receptionist.list-desc'
);
$msg->printMessages();

$fb = new FormBuilder('person', $formData);
$fb->setAction('/admin/receptionist/create');
$fb->hidden('seminar_id');
$fb->autocompleter('person_id', $personAcValues)->mustMatch()->labelKey('receptionist.add');
$fb->write();

function deleteColumnValueFunction($person, $textField, $seminar) {
	return html::anchor('/admin/receptionist/delete?seminar_id=' . $seminar['id'] . '&person_id=' . $person['id'],
			html::img('remove.png', array('title' => text::get('receptionist-delete'))));
}

$elb = new EntityListBuilder($this, $receptionistList, 'person_id');
$elb->text('last_name');
$elb->text('first_name');
$elb->date('birth_date');
$elb->text('login');
$elb->text('delete')->valueFunction('deleteColumnValueFunction', $seminar)->labelKey('util.emptyString');
$elb->write();
